<template>
  <div class="wrap" id="children2">
    <el-dialog
      title="修改有效期"
      :visible.sync="state"
      @close="close"
      :close-on-click-modal="false"
      :close-on-press-escape="false"
    >
      <el-form>
         <el-form-item label="修改有效期:" :label-width="formLabelWidth">
          <el-date-picker
            v-model="date"
            type="daterange"
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
          ></el-date-picker>
        </el-form-item>
        <el-form-item label="管理员登陆密码:" :label-width="formLabelWidth">
          <el-input placeholder="请输入登陆密码"></el-input>
         </el-form-item>
         <el-form-item label="管理员验证码:" :label-width="formLabelWidth">
          <el-input placeholder="请输入管理员手机号验证码"></el-input>
          <el-button>获取验证码</el-button>
         </el-form-item>
       
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="close">取消</el-button>
        <el-button type="primary" @click="close">确认</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  props: {
    setTimeState: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      formLabelWidth: "140px",
      date:[]
    };
  },
  computed: {
    state: {
      get() {
        return this.setTimeState;
      },
      set() {}
    }
  },
  methods: {
    close(v) {
      if (v) {
        this.$emit("setTimeData");
      } else {
        this.$emit("setTimeData");
      }
    },
    
  }
};
</script>
<style lang="scss" scoped>
.el-input {
  width: 240px;
}
.el-dialog {
  width: 50% !important;
}
.a {
  color: #719bef;
}
.dialog-footer {
  display: flex;
  justify-content: center;
}
</style>
<style lang="scss">
#children2 .el-dialog {
  width: 40% !important;
}
#children2 .el-form-item__label {
  color: #719bef;
}
</style>